<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <meta charset="utf-8">
        <title>Dashboard</title>
        <meta name="generator" content="Bootply"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <link href="../resources/css/bootstrap.min.css" rel="stylesheet">
        <link href="../resources/css/dashboard.css" rel="stylesheet">
        <script type='text/javascript' src="../resources/js/jquery-2.1.1.min.js"></script>
        <script type='text/javascript' src="../resources/js/bootstrap.min.js"></script>

    </head>
    <body>
        <jsp:include page="common/top-bar.jsp"/>

        <div class="container">

            <!-- upper section -->
            <div class="row">
                <div class="col-sm-3">
                    <jsp:include page="common/nav-bar.jsp"/>

                </div>
                <!-- /span-3 -->
                <div class="col-sm-9">
                    <div id="msg"></div>
                    <!-- column 2 -->
                    <h3><i class="glyphicon glyphicon-flash"></i>Alerts</h3>

                    <hr>

                    <div class="row">

                        <c:forEach var="alert" items="${alerts}">
                            <div class="alert alert-${alert.type} alert-dismissible" role="alert">
                                <button type="button" class="close" data-dismiss="alert">
                                    <span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                                <strong>${alert.title}</strong>
                                <br/>
                                ${alert.message}
                            </div>
                        </c:forEach>

                    </div>
                    <!--/col-->


                </div>
                <!--/row-->
            </div>
            <!--/col-span-9-->

        </div>
        <!--/row-->

        <!--/container-->
        <!-- /Main -->

    </body>
</html>
